package cn.wit.test;

import org.junit.Test;

public class DemoPhone {
	@Test
	public void test() {
		
		String brand = "小米";
		double price = 998;
		
		//创建手机类对象,第一种初始化方法，调用构造器
		Phone phone =new Phone(brand,price);
		
		//也可以使用set方法
//		phone.setBrand(brand);
//		phone.setPrice(price);
		
		phone.call();
		phone.sendMessage();
		phone.playGame();
	
		
	
	}

}
